<template>
  <div>
    <div>
      <h3> 查看api</h3>
      <el-tabs v-model="activeName">
        <el-tab-pane name="bytag" label="bytag"></el-tab-pane>
        <el-tab-pane name="byapiurl" label="byapiurl"></el-tab-pane>
      </el-tabs>

      <apibytagnameCom ref="apibytagnameref" v-show="activeName=='bytag'"></apibytagnameCom>
      <apibyapiurlCom ref="apibyapiurlref"  v-show="activeName=='byapiurl'"></apibyapiurlCom>

    </div>
  </div>
</template>
<script>
import apibytagnameCom from './apibytagname.vue'
import apibyapiurlCom from './apibyapiurl.vue'
import axios from 'axios';
import * as lodash from 'lodash-es';

export default {
  data() {
    return {
      activeName: 'bytag',
      total: 0,
      dataList: [],
      grouplist: [],
      queryParams: {
        projectCode: '',
        name: '',
        pageSize: 5,
      },
      apidosurl: '',
    };
  },
  components: {
    apibyapiurlCom,
    apibytagnameCom,
  },
  methods: {
    initByDialog(_data) {
      setTimeout(()=>{
         this.$refs['apibytagnameref'].initByDialog(_data)
          this.$refs['apibyapiurlref'].initByDialog(_data)
      },200)
    },

  },
};</script>
